package day20170418.integer;

import org.junit.Test;

public class IntegerTest {
	
	@Test
	public void integerTest() throws Exception {
		Integer integer = new Integer(10);
		
		//longValue测试
		long longValue = integer.longValue();
		System.out.println("测试longValue："+longValue);
		
		//doubleValue测试
		double doubleValue = integer.doubleValue();
		System.out.println("测试doubleValue："+doubleValue);
		
		//floatValue测试
		float floatValue = integer.floatValue();
		System.out.println("测试floatValue："+floatValue);
		
		//parseInt测试
		int parseInt = Integer.parseInt("200");
		System.out.println("测试parseInt："+parseInt);
		
		//valueOf测试
		Integer valueOf = Integer.valueOf("1000");
		System.out.println("测试valueOf："+valueOf);
		
		//reverseBytes测试
		int reverseBytes = Integer.reverseBytes(1);
		System.out.println("测试reverseBytes："+reverseBytes);
		
		
		//numberOfLeadingZeros测试
		int numberOfLeadingZeros = Integer.numberOfLeadingZeros(10);
		System.out.println("测试numberOfLeadingZeros："+numberOfLeadingZeros);
	}
}
